Obey local bounds in HSA reader.
authorrobertl <robertl>
Thu, 19 Oct 2006 20:26:00 +0000 (20:26 +0000)
committerrobertl <robertl>
Thu, 19 Oct 2006 20:26:00 +0000 (20:26 +0000)
hsa_ndv.c

index 58a41e1cd96065a90f423d165cc37ebdf80e82f9..bb85c71c738a56822c7e6c63071c024158359b56 100644 (file)
--- a/hsa_ndv.c
+++ b/hsa_ndv.c
@@ -233,7 +233,7 @@ hsa_ndv_read(void)
        {
                char *bad;
 
-               buf[len] = 0;
+               buf[len-1] = 0;
                if (NULL != strstr(buf, "nver=1"))
                {//its the older format, not xml
                        fseek(fd, 0, SEEK_SET);